metaContent = "pDcfDN8f3jz1r7XPqFGsPL6q9rSYtQFpgNsbPWxFArYi81IxUjQqVJWLCSbyMjvmpPyvkJOGoZQizOfI8SGYRSg.ZWDc2MpBkbeiYeTC0T2n07RtcD7cCyQ_xeajMYzzU28381JavZM7FlN4Pz3whmOha766Uu_TEYu3H4pK.j6M9UQzVj.Y2G"
self = top = window = global;

// delete global
// delete Buffer

window.setTimeout = function() {}
window.setInterval = function() {}

window.addEventListener = function() {}
window.XMLHttpRequest = function() {}
window.HTMLFormElement = function() {}

window.ActiveXObject = function ActiveXObject() {}

let meta_eles = [
    {
        content: "",
        getAttribute: function (param) {
            return "m"
        },
        parentNode: {
            removeChild: function () { }
        }
    },
    {
        content: metaContent,
        getAttribute: function () {
            console.log("meta_eles.2.getAttribute", arguments)
            return "m"
        },
        parentNode: {
            removeChild: function () { }
        }
    }
]

document = {
    body: "",
    visibilityState: 'visible',
    createElement: function(ele) {
        console.log("document.createElement ele=", ele)
        if (ele === "div") {
            return {
                getElementsByTagName: function () {
                    return []
                }
            }
        }
        else if (ele === "form") {
            return {
                getElementsByTagName: function () {
                    return []
                }
            }
        }
        else {
            return {}
        }
    },
    getElementsByTagName: function (ele) {
        console.log("document.getElementsByTagName ele=", ele)
        if (ele === "meta") {
            return meta_eles
        }
        else {
            return []
        }
    },
    getElementById: function(param) {
        console.log("document.getElementById param=", param)
        return {}
    },
    removeChild: function() {},
    addEventListener: function() {},
    appendChild: function() {},
    documentElement: {
        addEventListener: function() {}
    }
}

location = {
    "ancestorOrigins": {},
    "href": "https://www.ouyeel.com/search-ng/queryResource/index",
    "origin": "https://www.ouyeel.com",
    "protocol": "https:",
    "host": "www.ouyeel.com",
    "hostname": "www.ouyeel.com",
    "port": "",
    "pathname": "/search-ng/queryResource/index",
    "search": "",
    "hash": ""
}

navigator = {
    appCodeName: "Mozilla",
    appName: "Netscape",
    appVersion: "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
    userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
    webdriver: false
}
